<!DOCTYPE html>
<html>
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>

        </title>
        <?php echo $this->Html->css('index'); ?> 
        <?php echo $this->Html->css('bootstrap'); ?>
        <?php echo $this->Html->css('bootstrap-responsive'); ?>
        <?php echo $this->Html->css('clust'); ?>
        <?php echo $this->Html->css('clust2'); ?>
        <?php echo $this->Html->css('style'); ?>
        <?php echo $this->Html->script('jquery.min'); ?>
        <?php echo $this->Html->script('bootstrap'); ?>
        <?php echo $this->Html->script('menu'); ?>
        <?php echo $this->Html->script('clust'); ?>
        <?php
        echo $this->Html->meta('icon');

        echo $this->Html->css('bootstrap.min.css');
        echo $this->Html->script('jquery-1.11.2.min.js');
        echo $this->Html->script('bootstrap.min.js');
        echo $this->Html->css('jquery.fancybox.css');
        echo $this->Html->script('jquery.fancy.js');
        ?>
        <?php
        echo $this->fetch('meta');
        echo $this->fetch('css');
        echo $this->fetch('script');
        ?>
        <script type="text/javascript" src="/MapSC/fancybox/js/jquery.fancybox.pack.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/jquery.fancybox-buttons.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/jquery.fancybox-thumbs.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/jquery.mousewheel-3.0.6.pack.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/invoke.fancybox.js"></script><link rel="stylesheet" type="text/css" href="/MapSC/fancybox/css/jquery.fancybox.css" /><link rel="stylesheet" type="text/css" href="/MapSC/fancybox/css/helpers/jquery.fancybox-buttons.css" /><link rel="stylesheet" type="text/css" href="/MapSC/fancybox/css/helpers/jquery.fancybox-thumbs.css" /><link href="/MapSC/favicon.ico" type="image/x-icon" rel="icon" /><link href="/MapSC/favicon.ico" type="image/x-icon" rel="shortcut icon" /><link rel="stylesheet" type="text/css" href="/MapSC/css/bootstrap.min.css" /><script type="text/javascript" src="/MapSC/js/jquery-1.11.2.min.js"></script><script type="text/javascript" src="/MapSC/js/bootstrap.min.js"></script><link rel="stylesheet" type="text/css" href="/MapSC/fancybox/css/jquery.fancybox.css" /><link rel="stylesheet" type="text/css" href="/MapSC/fancybox/css/helpers/jquery.fancybox-buttons.css" /><link rel="stylesheet" type="text/css" href="/MapSC/fancybox/css/helpers/jquery.fancybox-thumbs.css" /><script type="text/javascript" src="/MapSC/fancybox/js/jquery.fancybox.pack.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/jquery.fancybox-buttons.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/jquery.fancybox-thumbs.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/jquery.mousewheel-3.0.6.pack.js"></script><script type="text/javascript" src="/MapSC/fancybox/js/invoke.fancybox.js"></script>

        <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.5/mapbox.js'></script>
        <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.5/mapbox.css' rel='stylesheet' />
        <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/leaflet.markercluster.js'></script>
        <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/MarkerCluster.css' rel='stylesheet' />
        <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/MarkerCluster.Default.css' rel='stylesheet' />

    </head>
    <?php
// Liste des stades
    if (isset($_POST['rechercher'])) {
        $liste = $this->requestAction(array('controller' => 'stades', 'action' => 'rechercher', $_POST['cles']));
    } else
        $liste = $this->requestAction(array('controller' => 'stades', 'action' => 'lister'));
    ?>
    <body onload = 'changeMenu(), loadMap(), dessiner(<?php echo $param = htmlspecialchars(json_encode($liste), ENT_QUOTES) ?>)'>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <?php echo $this->fetch('topMenu'); ?>
                </div>
            </div>

        </div>

        <?php echo $this->fetch('map'); ?>

    </body>
</html>

